package com.zhangst.bbs.admin.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.springframework.beans.factory.annotation.Autowired;

import com.zhangst.bbs.service.ContentServiceI;
import com.zhangst.bbs.service.UserServiceI;

@ParentPackage("basePackage")
@Namespace("/admin")
public class AdminAction {
	private UserServiceI userService;
	private ContentServiceI contentService;
	public UserServiceI getUserService() {
		return userService;
	}
	@Autowired
	public void setUserService(UserServiceI userService) {
		this.userService = userService;
	}

	public ContentServiceI getContentService() {
		return contentService;
	}
	@Autowired
	public void setContentService(ContentServiceI contentService) {
		this.contentService = contentService;
	}
	
	@Action(value="user")
	public String user(){
		
		return "success";
	}
	
	
	
	
}
